<?php

/**
* @package      auto_occasion
* @subpackage   commun
* @version      1
* @author       CMS
*/


/**
* Zone affichant le  header du front office
*
* @package auto_occasion
* @subpackage commun
*/
class FoEntrepriseRightZone extends jZone {
 
    protected $_tplname='entreprise~FoEntrepriseRight.zone';

    /**
    * Chargement des données pour affichage
    */
    protected function _prepareTpl(){
		
        jClasses::inc('publicite~pubSrv');
        jClasses::inc('commun~parametre');
        jClasses::inc("accueil~GoogleMapAPI");

        $pub1 = pubSrv::getByRubriqueAndLocation(PUB_RUBRIQUE_HOME, PUB_RIGHT_1_ID);
        $pub2 = pubSrv::getByRubriqueAndLocation(PUB_RUBRIQUE_HOME, PUB_RIGHT_2_ID);
        $pub3 = pubSrv::getByRubriqueAndLocation(PUB_RUBRIQUE_HOME, PUB_RIGHT_3_ID);
        $pub4 = pubSrv::getByRubriqueAndLocation(PUB_RUBRIQUE_HOME, PUB_RIGHT_4_ID);
        $pub5 = pubSrv::getByRubriqueAndLocation(PUB_RUBRIQUE_HOME, PUB_RIGHT_5_ID);
        $pub6 = pubSrv::getByRubriqueAndLocation(PUB_RUBRIQUE_HOME, PUB_RIGHT_6_ID);

        $timeout = parametre::get(PARAM_TIMEOUT_PUB);

		
        $this->_tpl->assign('timeout', $timeout);
        $this->_tpl->assign('pub1', $pub1);
        $this->_tpl->assign('pub2', $pub2);
        $this->_tpl->assign('pub3', $pub3);
    }
}